javascript convert string to 2 decimal

44

javascript convert string to 2 decimal -

var twoPlacedFloat = parseFloat(yourString).toFixed(2)

Comments

Submit
0 Comments